package com.yangle.shell.service;

import com.yangle.shell.bean.OrderDetail;
import com.yangle.shell.dto.OrderMasterDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Author: yangle
 * Create Data: 2020/12/5
 */
public interface OrderService {
    /**创建订单*/
    OrderMasterDto createOrder(OrderMasterDto orderMasterDto);
    /**查询单个订单*/
    OrderMasterDto findOrderById(String orderId);
    /**通过微信Id查询订单列表*/
    Page<OrderMasterDto>  findList(String openId, Pageable pageable);
    /**取消订单*/
    OrderMasterDto cancelOrder(OrderMasterDto orderMasterDto);
    /**完结订单*/
    OrderMasterDto finishOrder(OrderMasterDto orderMasterDto);
    /**支付订单*/
    OrderMasterDto payOrder(OrderMasterDto orderMasterDto);
}
